package com.imau.brand.mapper;

import com.imau.brand.bean.Brand;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface BrandMapper {
    //  添加
    public int addBrand(Brand brand);

    //删除
    @Delete("delete  from  tb_brand where id= #{id}")
    public int deleteById(Integer id);

    //修改
    public int updateBrand(Brand brand);

    //查询
    @Select("select * from  tb_brand where id= #{id}")
    public Brand selectById(Integer id);

    //查询所有
    @Select("select  * from tb_brand")
    public List<Brand> selectAll();
}
